<?php

namespace App\Http\Controllers\Admin;

use App\Model\Dpt;
use App\User;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class StaffController extends Controller
{
    /**
     * 员工管理首页
     */
    public function index(){
        $staffs = User::all();
        $dpts = Dpt::all();
//        dd($dpts);
        return view('admin.staff.index', ['staffs' => $staffs, 'dpts' => $dpts]);
    }
}
